const web = require("../../module/web"), loger = require("../../module/loger");

module.exports.run = ()=>{
	loger.info("enter sina mail");
	
	web.openUrl("https://mail.sina.com.cn/register/regmail.php",(w)=>{
		loger.info("run loaded");
		let tbt = w.window.document.getElementsByClassName("subIco");
		if(tbt && tbt[0]){
			if(tbt[0].innerHTML == "退出并继续"){
				tbt[0].click();		
			}else if(tbt[0].innerHTML == "立即注册"){
				global.sdObj.end = 0;
				return true;
			}
		}
	});	
}